package com.wn34.goods.mapper;

import com.wn34.goods.entity.Order;
import com.wn34.goods.vo.OrdersVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderid);

    int insert(Order record);

    Order selectByPrimaryKey(Integer orderid);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    List<OrdersVo> selectByUserId(Integer userid);

    Order selectExist(@Param("userid") Integer userid, @Param("gid") Integer gid);
}